<template lang="pug">
.content
  .container-fluid
    .row
      md-card(title='用户列表', category='可以为 Mac 地址绑定用户资料，这里列出了已有的用户资料', backgroundColor='blue')
        pagina-table(apiUrl="/users/all" :columns='users.columns' :titles='users.titles')
      md-button.btn.btn-primary.pull-right.btn-round(href='#/users/add') 添加用户
      .clearfix
</template>

<script>
import MdNavTabs from '@/core/components/mdTab/nav-tabs'
import MdTabContent from '@/core/components/mdTab/tab-content'
import UserDeleteButton from '@/components/UserDeleteButton'
import PaginaTable from '@/components/PaginaTable'

export default {
  name: 'dashboard',
  components: {
    MdTabContent,
    MdNavTabs,
    PaginaTable,
    UserDeleteButton
  },

  data() {
    return {
      users: {
        columns: ['mac', 'name', 'phone', 'company', 'misc'],
        titles: ['MAC', '姓名', '手机', '公司', '备注']
      }
    }
  }
}
</script>
